package com.kingsoft.demo.proxy.dynamic.cglib;

public class TestForumService {
	
	public static void main(String[] args) {
		
		CglibProxy proxy = new CglibProxy();
		ForumServiceImpl forumService = (ForumServiceImpl )proxy.getProxy(ForumServiceImpl.class);//① 通过动态生成子类的方式创建代理对象
		forumService.removeForum(10);
		forumService.removeTopic(1023);

	}

}
